package com.leon.api.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 账户表
 * @program: heima-wallet
 * @author: Leon
 * @date: 2021-03-08 19:33
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_account")
public class Account {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer accountId; // 账户id

    @TableField(value = "balance")
    private double balance; // 账户余额

    @TableField(value = "create_time")
    private Date createTime; // 创建时间

    @TableField(value = "update_time")
    private Date updateTime; // 更新时间

    @TableField(value = "account_name")
    private String accountName;// 账户名


}
